import { parse } from 'node-html-parser';
import { captcha, captcha_char } from '../atom-web/config';

const html = `
<!--菜单收缩display-n-----菜单展开--><zjc-000003></zjc-000003>
<div id="right" style="height:100%;margin-left:165px;">
<div><h1>验证码</h1></div>
<div><h2>表达式验证码</h2></div>
<div>
	<span>1.默认</span>
	<img src="${captcha}"><textarea rows=2 cols=80><img src="${captcha}"></textarea>
</div>
<div>
	<img src="${captcha}?width=200"><textarea rows=2 cols=80><img src="${captcha}?width=200"></textarea>
</div>
<div>
	<img src="${captcha}?width=200&height=50"><textarea rows=2 cols=80><img src="${captcha}?width=200&height=50"></textarea>
</div>
<div>
	<img src="${captcha}?width=200&height=50&background=yellow"><textarea rows=2 cols=80><img src="${captcha}?width=200&height=50&background=yellow"></textarea>
</div>
<div>
	<span style="color:red;">颜色值为'#569841'请求是需要将'#'替换为'%2'</span>
	<img src="${captcha}?width=200&height=50&background=%2569841"><textarea rows=2 cols=80><img src="${captcha}?width=200&height=50&background=%2569841"></textarea>
</div>
<div>
	<img src="${captcha}?width=200&height=50&background=%2569841&fontsize=20"><textarea rows=2 cols=80><img src="${captcha}?width=200&height=50&background=%2569841&fontsize=20"></textarea>
</div>
<div>
	<img src="${captcha}?width=200&height=50&background=%2569841&fontsize=60"><textarea rows=2 cols=80><img src="${captcha}?width=200&height=50&background=%2569841&fontsize=60"></textarea>
</div>

<div><h2>英文数字验证码</h2></div>
<div>
	<img src="${captcha_char}"><textarea rows=2 cols=80><img src="${captcha_char}"></textarea>
</div>
<div>
	<img src="${captcha_char}?width=200"><textarea rows=2 cols=80><img src="${captcha_char}?width=200"></textarea>
</div>
<div>
	<img src="${captcha_char}?width=200&height=50"><textarea rows=2 cols=80><img src="${captcha_char}?width=200&height=50"></textarea>
</div>
<div>
	<img src="${captcha_char}?width=200&height=50&background=yellow"><textarea rows=2 cols=80><img src="${captcha_char}?width=200&height=50&background=yellow"></textarea>
</div>
<div>
	<span style="color:red;">颜色值为'#569841'请求是需要将'#'替换为'%2'</span>
	<img src="${captcha_char}?width=200&height=50&background=%2569841"><textarea rows=2 cols=80><img src="${captcha_char}?width=200&height=50&background=%2569841"></textarea>
</div>
<div>
	<img src="${captcha_char}?width=200&height=50&background=%2569841&fontsize=20"><textarea rows=2 cols=80><img src="${captcha_char}?width=200&height=50&background=%2569841&fontsize=20"></textarea>
</div>
<div>
	<img src="${captcha_char}?width=200&height=50&background=%2569841&fontsize=50&size=6"><textarea rows=2 cols=80><img src="${captcha_char}?width=200&height=50&background=%2569841&fontsize=50&size=6"></textarea>
</div>
</div>
`;

export default parse(html);
